<!DOCTYPE html>
<html>
<head>
	<title>参数管理</title>
	<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<div class="form-group col-md-8">
				<#if shiro.hasPermission("tea:other:dept")>
				<div class="col-sm-3">
					<select    v-model="p.deptId"  style="width:160px;"  class="form-control" >
						<option value="" selected>选择部门</option>
						<option v-for="(item,index) in dmoptions" :key="index"  :value='item.deptId'>{{item.name}}</option>
					</select>
				</div>
				</#if>
			<#if shiro.hasPermission("tea:other:username")>
				<div class=" col-sm-6" >
					<input style="width:140px;" type="text" class="form-control" v-model="p.username"  placeholder="教师姓名">
				</div>
		    </#if>
			</div>

	    <#if shiro.hasPermission("tea:other:btn")>
		<a class="btn btn-default" @click="query">查询</a>
        </#if>
		<#if shiro.hasPermission("tea:other:excel")>
		<a class="btn btn-primary" @click="excel"><i class=""></i>&nbsp;导出</a>
		</#if>
        <#if shiro.hasPermission("tea:other:add")>
		<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        </#if>
         <#if shiro.hasPermission("tea:other:edit")>
			<a class="btn btn-primary" @click="edit"><i class="fa fa-plus"></i>&nbsp;修改</a>
         </#if>
         <#if shiro.hasPermission("tea:other:del")>
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
          </#if>


		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div class="form-group">
				<div class="col-sm-2 control-label">任教类型</div>
				<div class="col-sm-10">
					<select  v-model="other.teachingType"    class="form-control" >
						<option value="" selected>选择类别</option>
						<option v-for="(item,index) in kdoptions" :key="index"  :value='item.id' >{{item.value}}</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">专业任教时间</div>
				<div class="col-sm-10">
					<el-date-picker v-model="other.teachingTime"
									type="year"
									value-format="yyyy"
									placeholder="专业任教时间"
					>
					</el-date-picker>
				</div>
			</div>
			<!--<div class="form-group">
				<div class="col-sm-2 control-label">任教专业代码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="other.authNum" placeholder="任教专业代码"/>
				</div>
			</div>-->

			<div class="form-group">
				<div class="col-sm-2 control-label">是否实验技术人员</div>
				<label class="radio-inline">
					<input type="radio" name="technique" value="0" v-model="other.technique"/> 否
				</label>
				<label class="radio-inline">
					<input type="radio" name="technique" value="1" v-model="other.technique"/> 是
				</label>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">是否双师双能型</div>
				<label class="radio-inline">
					<input type="radio" name="ability" value="0" v-model="other.ability"/> 否
				</label>
				<label class="radio-inline">
					<input type="radio" name="ability" value="1" v-model="other.ability"/> 是
				</label>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">是否工程背景</div>
				<label class="radio-inline">
					<input type="radio" name="engineering" value="0" v-model="other.engineering"/> 否
				</label>
				<label class="radio-inline">
					<input type="radio" name="engineering" value="1" v-model="other.engineering"/> 是
				</label>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">是否工程背景</div>
				<label class="radio-inline">
					<input type="radio" name="industry" value="0" v-model="other.industry"/> 否
				</label>
				<label class="radio-inline">
					<input type="radio" name="industry" value="1" v-model="other.industry"/> 是
				</label>
			</div><div class="form-group">
			<div class="col-sm-2 control-label">是否具有国（境）外一年及以上经历</div>
			<label class="radio-inline">
				<input type="radio" name="abroad" value="0" v-model="other.abroad"/> 否
			</label>
			<label class="radio-inline">
				<input type="radio" name="abroad" value="1" v-model="other.abroad"/> 是
			</label>
		</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">是否为课程思政优秀教师</div>
				<label class="radio-inline">
					<input type="radio" name="political" value="0" v-model="other.political"/> 否
				</label>
				<label class="radio-inline">
					<input type="radio" name="political" value="1" v-model="other.political"/> 是
				</label>
			</div>


			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
<script src="${request.contextPath}/statics/js/modules/tea/other.js?_${.now?long}"></script>
</body>
</html>